package com.biz.primus.ms.tms.dao.po;

import com.biz.primus.ms.base.jpa.po.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

/**
 * DeliveryPartSignItemPo
 * 配送单部分签收明细
 *
 * @author JKLiues
 * @date 2017/11/21
 */
@Getter
@Setter
@Entity
@Table(name = "delivery_sign_item")
public class DeliverySignItemPo extends BaseEntity {

    private static final long serialVersionUID = -7727345074440671918L;

    @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
    @JoinColumn(name = "deliveryOrderId")
    private DeliveryOrderPo deliveryOrder;

    /**
     * 产品编号
     */
    @Column
    private String productCode;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 购买数量
     */
    @Column
    private Integer purchaseQuantity;

    /**
     * 签收数量
     */
    @Column
    private Integer signQuantity;
}